function figure_relative_distance()
    h=figure(1);
    numpoints = 30;
    noise_numpoints=10;
    noise_x=randint(1,noise_numpoints,[-200,200]);
    noise_y=randint(1,noise_numpoints,[-200,200]);
    x = randint(1, numpoints,[-200,200]);
    y = 2*x-20+randn(1,numpoints)*15;
    plot(noise_x,noise_y,'r.');
    hold on;
    plot(x,y,'r.');
    grid on;
    saveas(h, 'figure_relative_distance.fig');
end
